package com.software.adapterview.entity;



import com.software.adapterview.R;

import java.util.ArrayList;
import java.util.List;

public class Wechat {
    private Integer avatar;
    private String nickname;
    private String endMessage;

    public Wechat(Integer avatar, String nickname, String endMessage) {
        this.avatar = avatar;
        this.nickname = nickname;
        this.endMessage = endMessage;
    }

    //模拟几条数据
    public static List<Wechat> getWechatList() {
        List<Wechat> wechatList = new ArrayList<>();
        wechatList.add(new Wechat(R.mipmap.avatar1, "小明", "你好"));
        wechatList.add(new Wechat(R.mipmap.avatar2, "小天", "君临万界神诀"));
        wechatList.add(new Wechat(R.mipmap.avatar3, "小红", "[语音通话]"));


        return wechatList;

    }

    public Integer getAvatar() {
        return avatar;
    }

    public void setAvatar(Integer avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEndMessage() {
        return endMessage;
    }

    public void setEndMessage(String endMessage) {
        this.endMessage = endMessage;
    }
}
